﻿using System.ComponentModel;
using System.Windows.Forms;
using SqlRunner.controls;

namespace SqlRunner
{
    public partial class FormMain
    {
        #region Controls

        private FolderBrowserDialog fBrowser;
        private StatusBar stsBar;
        private StatusBarPanel txtComment;
        private StatusBarPanel txtTotal;
        private StatusBarPanel txtTotalErrors;
        private StatusBarPanel txtElapsedTime;
        private GroupBox grpSQLPath;
        private Button btnFolder;
        private GroupBox grpRun;
        private Button btnRun;
        private GroupBox grpScriptList;
        private TreeView treeScripts;
        private Button btnClear;
        private MainMenu mnuMain;
        private MenuItem mnuFile;
        private MenuItem mnuReset;
        private MenuItem menuItem3;
        private MenuItem mnuExit;
        private IContainer components;

        private CheckedListBox lstFolders;
        private Button btnRemove;
        private Button btnClearFolders;
        private Button btnUp;
        private Button btnDown;

        private ToolTip toolTip;
        private CheckBox chkSubFolders;
        private GroupBox grpEvent;
        private Button btnSQL;
        private TextBox txtEventError;
        private TextBox txtEventName;
        private Panel progressPane;
        private PictureBox progressPict;
        private ProgressBar progressBar;
        private readonly TimerExtended timerExecution;
        private MenuItem menuItem1;
        private MenuItem menuItem2;
        private Button btnAbort;
        private MenuItem mnuOpen;
        private MenuItem mnuSave;
        private MenuItem mnuSaveAs;
        private MenuItem menuItem6;
        private OpenFileDialog openFile;
        private SaveFileDialog saveFile;

        private MenuItem mnuNew;
        private MenuItem mnuConnMgr;
        private MenuItem mnuOptimisticMgr;
        private MenuItem mnuPessimisticMgr;
        private MenuItem mnuStrictMgr;
        private MenuItem mnuCommitMgr;
        private MenuItem mnuRollbackMgr;
        private StatusBarPanel txtConnMgrMode;
        private SplitContainer splitContainer1;
        private Label label5;
        private ListView lvEnvironments;
        private ColumnHeader columnHeader1;
        private ColumnHeader columnHeader2;
        private ColumnHeader columnHeader3;
        private ToolStrip tsEnvironments;
        private ToolStripButton btnAddEnvironment;
        private ToolStripButton btnDeleteEnvironment;
        private ToolStripButton btnEditEnvironment;
        private Label lblScripts;
        private ToolStrip tsScripts;
        private ToolStripButton tlBtnAddFolder;
        private ToolStripButton tlBtnRemove;
        private ToolStripButton tlBtnUp;
        private ToolStripButton tlBtnDown;
        private SplitContainer splitContainer2;
        private SplitContainer splitContainer3;
        private ToolStripButton tlBtnClear;


        #endregion
        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
            this.fBrowser = new System.Windows.Forms.FolderBrowserDialog();
            this.stsBar = new System.Windows.Forms.StatusBar();
            this.txtComment = new System.Windows.Forms.StatusBarPanel();
            this.txtConnMgrMode = new System.Windows.Forms.StatusBarPanel();
            this.txtTotal = new System.Windows.Forms.StatusBarPanel();
            this.txtTotalErrors = new System.Windows.Forms.StatusBarPanel();
            this.txtElapsedTime = new System.Windows.Forms.StatusBarPanel();
            this.grpSQLPath = new System.Windows.Forms.GroupBox();
            this.lstFolders = new System.Windows.Forms.CheckedListBox();
            this.chkSubFolders = new System.Windows.Forms.CheckBox();
            this.grpRun = new System.Windows.Forms.GroupBox();
            this.progressPane = new System.Windows.Forms.Panel();
            this.btnAbort = new System.Windows.Forms.Button();
            this.progressBar = new System.Windows.Forms.ProgressBar();
            this.progressPict = new System.Windows.Forms.PictureBox();
            this.btnRun = new System.Windows.Forms.Button();
            this.grpScriptList = new System.Windows.Forms.GroupBox();
            this.btnClear = new System.Windows.Forms.Button();
            this.treeScripts = new System.Windows.Forms.TreeView();
            this.mnuMain = new System.Windows.Forms.MainMenu(this.components);
            this.mnuFile = new System.Windows.Forms.MenuItem();
            this.mnuNew = new System.Windows.Forms.MenuItem();
            this.mnuOpen = new System.Windows.Forms.MenuItem();
            this.mnuSave = new System.Windows.Forms.MenuItem();
            this.mnuSaveAs = new System.Windows.Forms.MenuItem();
            this.menuItem6 = new System.Windows.Forms.MenuItem();
            this.mnuReset = new System.Windows.Forms.MenuItem();
            this.menuItem3 = new System.Windows.Forms.MenuItem();
            this.mnuExit = new System.Windows.Forms.MenuItem();
            this.mnuConnMgr = new System.Windows.Forms.MenuItem();
            this.mnuOptimisticMgr = new System.Windows.Forms.MenuItem();
            this.mnuPessimisticMgr = new System.Windows.Forms.MenuItem();
            this.mnuStrictMgr = new System.Windows.Forms.MenuItem();
            this.mnuCommitMgr = new System.Windows.Forms.MenuItem();
            this.mnuRollbackMgr = new System.Windows.Forms.MenuItem();
            this.menuItem1 = new System.Windows.Forms.MenuItem();
            this.menuItem2 = new System.Windows.Forms.MenuItem();
            this.toolTip = new System.Windows.Forms.ToolTip(this.components);
            this.btnSQL = new System.Windows.Forms.Button();
            this.grpEvent = new System.Windows.Forms.GroupBox();
            this.txtEventError = new System.Windows.Forms.TextBox();
            this.txtEventName = new System.Windows.Forms.TextBox();
            this.openFile = new System.Windows.Forms.OpenFileDialog();
            this.saveFile = new System.Windows.Forms.SaveFileDialog();
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.splitContainer3 = new System.Windows.Forms.SplitContainer();
            this.tsScripts = new System.Windows.Forms.ToolStrip();
            this.tlBtnAddFolder = new System.Windows.Forms.ToolStripButton();
            this.tlBtnRemove = new System.Windows.Forms.ToolStripButton();
            this.tlBtnUp = new System.Windows.Forms.ToolStripButton();
            this.tlBtnDown = new System.Windows.Forms.ToolStripButton();
            this.tlBtnClear = new System.Windows.Forms.ToolStripButton();
            this.lblScripts = new System.Windows.Forms.Label();
            this.splitContainer2 = new System.Windows.Forms.SplitContainer();
            this.lvEnvironments = new System.Windows.Forms.ListView();
            this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
            this.tsEnvironments = new System.Windows.Forms.ToolStrip();
            this.btnAddEnvironment = new System.Windows.Forms.ToolStripButton();
            this.btnDeleteEnvironment = new System.Windows.Forms.ToolStripButton();
            this.btnEditEnvironment = new System.Windows.Forms.ToolStripButton();
            this.label5 = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.txtComment)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtConnMgrMode)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTotal)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTotalErrors)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtElapsedTime)).BeginInit();
            this.grpSQLPath.SuspendLayout();
            this.grpRun.SuspendLayout();
            this.progressPane.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.progressPict)).BeginInit();
            this.grpScriptList.SuspendLayout();
            this.grpEvent.SuspendLayout();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.splitContainer3.Panel1.SuspendLayout();
            this.splitContainer3.Panel2.SuspendLayout();
            this.splitContainer3.SuspendLayout();
            this.tsScripts.SuspendLayout();
            this.splitContainer2.Panel1.SuspendLayout();
            this.splitContainer2.Panel2.SuspendLayout();
            this.splitContainer2.SuspendLayout();
            this.tsEnvironments.SuspendLayout();
            this.SuspendLayout();
            // 
            // fBrowser
            // 
            this.fBrowser.Description = "Select folder to run SQL scripts from";
            this.fBrowser.ShowNewFolderButton = false;
            // 
            // stsBar
            // 
            this.stsBar.Location = new System.Drawing.Point(0, 578);
            this.stsBar.Name = "stsBar";
            this.stsBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
            this.txtComment,
            this.txtConnMgrMode,
            this.txtTotal,
            this.txtTotalErrors,
            this.txtElapsedTime});
            this.stsBar.ShowPanels = true;
            this.stsBar.Size = new System.Drawing.Size(920, 16);
            this.stsBar.TabIndex = 4;
            this.stsBar.Text = "statusBar1";
            // 
            // txtComment
            // 
            this.txtComment.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
            this.txtComment.Name = "txtComment";
            this.txtComment.Text = "Idle";
            this.txtComment.Width = 691;
            // 
            // txtConnMgrMode
            // 
            this.txtConnMgrMode.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
            this.txtConnMgrMode.Name = "txtConnMgrMode";
            this.txtConnMgrMode.Text = "Connection Manager: Pessimistic";
            this.txtConnMgrMode.Width = 182;
            // 
            // txtTotal
            // 
            this.txtTotal.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
            this.txtTotal.Name = "txtTotal";
            this.txtTotal.Width = 10;
            // 
            // txtTotalErrors
            // 
            this.txtTotalErrors.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
            this.txtTotalErrors.Name = "txtTotalErrors";
            this.txtTotalErrors.Width = 10;
            // 
            // txtElapsedTime
            // 
            this.txtElapsedTime.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
            this.txtElapsedTime.Name = "txtElapsedTime";
            this.txtElapsedTime.Width = 10;
            // 
            // grpSQLPath
            // 
            this.grpSQLPath.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.grpSQLPath.Controls.Add(this.lstFolders);
            this.grpSQLPath.Controls.Add(this.chkSubFolders);
            this.grpSQLPath.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.grpSQLPath.Location = new System.Drawing.Point(0, 49);
            this.grpSQLPath.Name = "grpSQLPath";
            this.grpSQLPath.Size = new System.Drawing.Size(686, 148);
            this.grpSQLPath.TabIndex = 9;
            this.grpSQLPath.TabStop = false;
            this.grpSQLPath.Text = "SQL Script files path";
            // 
            // lstFolders
            // 
            this.lstFolders.AllowDrop = true;
            this.lstFolders.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.lstFolders.Location = new System.Drawing.Point(3, 48);
            this.lstFolders.Name = "lstFolders";
            this.lstFolders.Size = new System.Drawing.Size(680, 94);
            this.lstFolders.TabIndex = 2;
            this.lstFolders.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.lstFolders_ItemCheck);
            this.lstFolders.DragDrop += new System.Windows.Forms.DragEventHandler(this.lstFolders_DragDrop);
            this.lstFolders.DragEnter += new System.Windows.Forms.DragEventHandler(this.lstFolders_DragEnter);
            // 
            // chkSubFolders
            // 
            this.chkSubFolders.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.chkSubFolders.Location = new System.Drawing.Point(3, 16);
            this.chkSubFolders.Name = "chkSubFolders";
            this.chkSubFolders.Size = new System.Drawing.Size(676, 24);
            this.chkSubFolders.TabIndex = 0;
            this.chkSubFolders.Text = "Check/Uncheck all folders in the list";
            this.toolTip.SetToolTip(this.chkSubFolders, "If a folder is checked the script files stored in subfolders are also executed");
            this.chkSubFolders.CheckedChanged += new System.EventHandler(this.chkSubFolders_CheckedChanged);
            // 
            // grpRun
            // 
            this.grpRun.Controls.Add(this.progressPane);
            this.grpRun.Controls.Add(this.btnRun);
            this.grpRun.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.grpRun.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.grpRun.Location = new System.Drawing.Point(0, 530);
            this.grpRun.Name = "grpRun";
            this.grpRun.Size = new System.Drawing.Size(686, 48);
            this.grpRun.TabIndex = 10;
            this.grpRun.TabStop = false;
            this.grpRun.Text = "Run scripts";
            // 
            // progressPane
            // 
            this.progressPane.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.progressPane.Controls.Add(this.btnAbort);
            this.progressPane.Controls.Add(this.progressBar);
            this.progressPane.Controls.Add(this.progressPict);
            this.progressPane.Location = new System.Drawing.Point(8, 14);
            this.progressPane.Name = "progressPane";
            this.progressPane.Size = new System.Drawing.Size(558, 30);
            this.progressPane.TabIndex = 2;
            this.progressPane.Visible = false;
            // 
            // btnAbort
            // 
            this.btnAbort.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAbort.Location = new System.Drawing.Point(467, 3);
            this.btnAbort.Name = "btnAbort";
            this.btnAbort.Size = new System.Drawing.Size(80, 24);
            this.btnAbort.TabIndex = 2;
            this.btnAbort.Text = "Cancel";
            this.toolTip.SetToolTip(this.btnAbort, "Tries to stop the script processor");
            this.btnAbort.Click += new System.EventHandler(this.btnAbort_Click);
            // 
            // progressBar
            // 
            this.progressBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.progressBar.Location = new System.Drawing.Point(32, 6);
            this.progressBar.Name = "progressBar";
            this.progressBar.Size = new System.Drawing.Size(429, 14);
            this.progressBar.TabIndex = 1;
            // 
            // progressPict
            // 
            this.progressPict.Image = ((System.Drawing.Image)(resources.GetObject("progressPict.Image")));
            this.progressPict.Location = new System.Drawing.Point(8, 4);
            this.progressPict.Name = "progressPict";
            this.progressPict.Size = new System.Drawing.Size(16, 16);
            this.progressPict.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
            this.progressPict.TabIndex = 0;
            this.progressPict.TabStop = false;
            // 
            // btnRun
            // 
            this.btnRun.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.btnRun.Enabled = false;
            this.btnRun.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.btnRun.Location = new System.Drawing.Point(572, 16);
            this.btnRun.Name = "btnRun";
            this.btnRun.Size = new System.Drawing.Size(106, 24);
            this.btnRun.TabIndex = 1;
            this.btnRun.Text = "&Run Scripts";
            this.toolTip.SetToolTip(this.btnRun, "Run all the scripts");
            this.btnRun.Click += new System.EventHandler(this.btnRun_Click);
            // 
            // grpScriptList
            // 
            this.grpScriptList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.grpScriptList.Controls.Add(this.btnClear);
            this.grpScriptList.Controls.Add(this.treeScripts);
            this.grpScriptList.Enabled = false;
            this.grpScriptList.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.grpScriptList.Location = new System.Drawing.Point(0, 3);
            this.grpScriptList.Name = "grpScriptList";
            this.grpScriptList.Size = new System.Drawing.Size(322, 317);
            this.grpScriptList.TabIndex = 13;
            this.grpScriptList.TabStop = false;
            this.grpScriptList.Text = "Script List";
            // 
            // btnClear
            // 
            this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.btnClear.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.btnClear.Location = new System.Drawing.Point(4, 288);
            this.btnClear.Name = "btnClear";
            this.btnClear.Size = new System.Drawing.Size(312, 24);
            this.btnClear.TabIndex = 13;
            this.btnClear.Text = "C&lear List";
            this.toolTip.SetToolTip(this.btnClear, "Clears script tree list");
            this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
            // 
            // treeScripts
            // 
            this.treeScripts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.treeScripts.Location = new System.Drawing.Point(4, 19);
            this.treeScripts.Name = "treeScripts";
            this.treeScripts.Size = new System.Drawing.Size(312, 258);
            this.treeScripts.TabIndex = 12;
            this.treeScripts.DoubleClick += new System.EventHandler(this.treeScripts_DoubleClick);
            this.treeScripts.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeScripts_AfterSelect);
            // 
            // mnuMain
            // 
            this.mnuMain.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.mnuFile,
            this.mnuConnMgr,
            this.menuItem1});
            // 
            // mnuFile
            // 
            this.mnuFile.Index = 0;
            this.mnuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.mnuNew,
            this.mnuOpen,
            this.mnuSave,
            this.mnuSaveAs,
            this.menuItem6,
            this.mnuReset,
            this.menuItem3,
            this.mnuExit});
            this.mnuFile.Text = "&File";
            // 
            // mnuNew
            // 
            this.mnuNew.Index = 0;
            this.mnuNew.Shortcut = System.Windows.Forms.Shortcut.CtrlN;
            this.mnuNew.Text = "New";
            this.mnuNew.Click += new System.EventHandler(this.mnuNew_Click);
            // 
            // mnuOpen
            // 
            this.mnuOpen.Index = 1;
            this.mnuOpen.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
            this.mnuOpen.Text = "&Open";
            this.mnuOpen.Click += new System.EventHandler(this.mnuOpen_Click);
            // 
            // mnuSave
            // 
            this.mnuSave.Enabled = false;
            this.mnuSave.Index = 2;
            this.mnuSave.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
            this.mnuSave.Text = "&Save";
            this.mnuSave.Click += new System.EventHandler(this.mnuSave_Click);
            // 
            // mnuSaveAs
            // 
            this.mnuSaveAs.Enabled = false;
            this.mnuSaveAs.Index = 3;
            this.mnuSaveAs.Text = "Save &As";
            this.mnuSaveAs.Click += new System.EventHandler(this.mnuSaveAs_Click);
            // 
            // menuItem6
            // 
            this.menuItem6.Index = 4;
            this.menuItem6.Text = "-";
            // 
            // mnuReset
            // 
            this.mnuReset.Enabled = false;
            this.mnuReset.Index = 5;
            this.mnuReset.Text = "&Reset Connection";
            this.mnuReset.Click += new System.EventHandler(this.mnuReset_Click);
            // 
            // menuItem3
            // 
            this.menuItem3.Index = 6;
            this.menuItem3.Text = "-";
            // 
            // mnuExit
            // 
            this.mnuExit.Index = 7;
            this.mnuExit.Text = "E&xit SQL Runner";
            this.mnuExit.Click += new System.EventHandler(this.mnuExit_Click);
            // 
            // mnuConnMgr
            // 
            this.mnuConnMgr.Index = 1;
            this.mnuConnMgr.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.mnuOptimisticMgr,
            this.mnuPessimisticMgr,
            this.mnuStrictMgr,
            this.mnuCommitMgr,
            this.mnuRollbackMgr});
            this.mnuConnMgr.Text = "&Connection Manager";
            // 
            // mnuOptimisticMgr
            // 
            this.mnuOptimisticMgr.Index = 0;
            this.mnuOptimisticMgr.Text = "Optimistic";
            this.mnuOptimisticMgr.Click += new System.EventHandler(this.mnuOptimisticMgr_Click);
            // 
            // mnuPessimisticMgr
            // 
            this.mnuPessimisticMgr.Checked = true;
            this.mnuPessimisticMgr.Index = 1;
            this.mnuPessimisticMgr.Text = "Pessimistic";
            this.mnuPessimisticMgr.Click += new System.EventHandler(this.mnuPessimisticMgr_Click);
            // 
            // mnuStrictMgr
            // 
            this.mnuStrictMgr.Index = 2;
            this.mnuStrictMgr.Text = "Strict";
            this.mnuStrictMgr.Click += new System.EventHandler(this.mnuStrictMgr_Click);
            // 
            // mnuCommitMgr
            // 
            this.mnuCommitMgr.Index = 3;
            this.mnuCommitMgr.Text = "Commit Transaction";
            this.mnuCommitMgr.Click += new System.EventHandler(this.mnuCommitMgr_Click);
            // 
            // mnuRollbackMgr
            // 
            this.mnuRollbackMgr.Index = 4;
            this.mnuRollbackMgr.Text = "Rollback Transaction";
            this.mnuRollbackMgr.Click += new System.EventHandler(this.mnuRollbackMgr_Click);
            // 
            // menuItem1
            // 
            this.menuItem1.Index = 2;
            this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem2});
            this.menuItem1.Text = "&Help";
            // 
            // menuItem2
            // 
            this.menuItem2.Index = 0;
            this.menuItem2.Text = "&About";
            this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
            // 
            // toolTip
            // 
            this.toolTip.AutomaticDelay = 250;
            this.toolTip.AutoPopDelay = 2500;
            this.toolTip.InitialDelay = 250;
            this.toolTip.ReshowDelay = 250;
            // 
            // btnSQL
            // 
            this.btnSQL.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnSQL.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.btnSQL.Location = new System.Drawing.Point(321, 13);
            this.btnSQL.Name = "btnSQL";
            this.btnSQL.Size = new System.Drawing.Size(24, 24);
            this.btnSQL.TabIndex = 2;
            this.btnSQL.Text = "...";
            this.toolTip.SetToolTip(this.btnSQL, "Opens script in SQL Editor");
            this.btnSQL.Click += new System.EventHandler(this.btnSQL_Click);
            // 
            // grpEvent
            // 
            this.grpEvent.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.grpEvent.Controls.Add(this.txtEventError);
            this.grpEvent.Controls.Add(this.btnSQL);
            this.grpEvent.Controls.Add(this.txtEventName);
            this.grpEvent.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.grpEvent.Location = new System.Drawing.Point(0, 0);
            this.grpEvent.Name = "grpEvent";
            this.grpEvent.Size = new System.Drawing.Size(351, 335);
            this.grpEvent.TabIndex = 16;
            this.grpEvent.TabStop = false;
            this.grpEvent.Text = "Event Info";
            // 
            // txtEventError
            // 
            this.txtEventError.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtEventError.Location = new System.Drawing.Point(6, 43);
            this.txtEventError.Multiline = true;
            this.txtEventError.Name = "txtEventError";
            this.txtEventError.ReadOnly = true;
            this.txtEventError.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.txtEventError.Size = new System.Drawing.Size(339, 277);
            this.txtEventError.TabIndex = 1;
            // 
            // txtEventName
            // 
            this.txtEventName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtEventName.Location = new System.Drawing.Point(6, 16);
            this.txtEventName.Name = "txtEventName";
            this.txtEventName.ReadOnly = true;
            this.txtEventName.Size = new System.Drawing.Size(309, 20);
            this.txtEventName.TabIndex = 0;
            // 
            // splitContainer1
            // 
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.splitContainer3);
            this.splitContainer1.Panel1.Controls.Add(this.grpRun);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.lvEnvironments);
            this.splitContainer1.Panel2.Controls.Add(this.tsEnvironments);
            this.splitContainer1.Panel2.Controls.Add(this.label5);
            this.splitContainer1.Size = new System.Drawing.Size(920, 578);
            this.splitContainer1.SplitterDistance = 686;
            this.splitContainer1.TabIndex = 3;
            // 
            // splitContainer3
            // 
            this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer3.Location = new System.Drawing.Point(0, 0);
            this.splitContainer3.Name = "splitContainer3";
            this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer3.Panel1
            // 
            this.splitContainer3.Panel1.Controls.Add(this.tsScripts);
            this.splitContainer3.Panel1.Controls.Add(this.lblScripts);
            this.splitContainer3.Panel1.Controls.Add(this.grpSQLPath);
            // 
            // splitContainer3.Panel2
            // 
            this.splitContainer3.Panel2.Controls.Add(this.splitContainer2);
            this.splitContainer3.Size = new System.Drawing.Size(686, 530);
            this.splitContainer3.SplitterDistance = 200;
            this.splitContainer3.TabIndex = 15;
            // 
            // tsScripts
            // 
            this.tsScripts.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.tlBtnAddFolder,
            this.tlBtnRemove,
            this.tlBtnUp,
            this.tlBtnDown,
            this.tlBtnClear});
            this.tsScripts.Location = new System.Drawing.Point(0, 24);
            this.tsScripts.Name = "tsScripts";
            this.tsScripts.Size = new System.Drawing.Size(686, 25);
            this.tsScripts.TabIndex = 7;
            this.tsScripts.Text = "toolStrip1";
            // 
            // tlBtnAddFolder
            // 
            this.tlBtnAddFolder.Image = ((System.Drawing.Image)(resources.GetObject("tlBtnAddFolder.Image")));
            this.tlBtnAddFolder.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.tlBtnAddFolder.Name = "tlBtnAddFolder";
            this.tlBtnAddFolder.Size = new System.Drawing.Size(76, 22);
            this.tlBtnAddFolder.Text = "&Add Folder";
            this.tlBtnAddFolder.Click += new System.EventHandler(this.tlBtnAddFolder_Click);
            // 
            // tlBtnRemove
            // 
            this.tlBtnRemove.Image = ((System.Drawing.Image)(resources.GetObject("tlBtnRemove.Image")));
            this.tlBtnRemove.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.tlBtnRemove.Name = "tlBtnRemove";
            this.tlBtnRemove.Size = new System.Drawing.Size(93, 22);
            this.tlBtnRemove.Text = "&Remove Folder";
            this.tlBtnRemove.Click += new System.EventHandler(this.tlBtnRemove_Click);
            // 
            // tlBtnUp
            // 
            this.tlBtnUp.Image = ((System.Drawing.Image)(resources.GetObject("tlBtnUp.Image")));
            this.tlBtnUp.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.tlBtnUp.Name = "tlBtnUp";
            this.tlBtnUp.Size = new System.Drawing.Size(38, 22);
            this.tlBtnUp.Text = "&Up";
            this.tlBtnUp.Click += new System.EventHandler(this.tlBtnUp_Click);
            // 
            // tlBtnDown
            // 
            this.tlBtnDown.Image = ((System.Drawing.Image)(resources.GetObject("tlBtnDown.Image")));
            this.tlBtnDown.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.tlBtnDown.Name = "tlBtnDown";
            this.tlBtnDown.Size = new System.Drawing.Size(52, 22);
            this.tlBtnDown.Text = "&Down";
            this.tlBtnDown.Click += new System.EventHandler(this.tlBtnDown_Click);
            // 
            // tlBtnClear
            // 
            this.tlBtnClear.Image = ((System.Drawing.Image)(resources.GetObject("tlBtnClear.Image")));
            this.tlBtnClear.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.tlBtnClear.Name = "tlBtnClear";
            this.tlBtnClear.Size = new System.Drawing.Size(84, 22);
            this.tlBtnClear.Text = "C&lear Folders";
            this.tlBtnClear.Click += new System.EventHandler(this.tlBtnClear_Click);
            // 
            // lblScripts
            // 
            this.lblScripts.BackColor = System.Drawing.Color.LightSteelBlue;
            this.lblScripts.Dock = System.Windows.Forms.DockStyle.Top;
            this.lblScripts.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblScripts.Location = new System.Drawing.Point(0, 0);
            this.lblScripts.Name = "lblScripts";
            this.lblScripts.Size = new System.Drawing.Size(686, 24);
            this.lblScripts.TabIndex = 17;
            this.lblScripts.Text = "1. Scripts";
            // 
            // splitContainer2
            // 
            this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer2.Location = new System.Drawing.Point(0, 0);
            this.splitContainer2.Name = "splitContainer2";
            // 
            // splitContainer2.Panel1
            // 
            this.splitContainer2.Panel1.Controls.Add(this.grpScriptList);
            // 
            // splitContainer2.Panel2
            // 
            this.splitContainer2.Panel2.Controls.Add(this.grpEvent);
            this.splitContainer2.Size = new System.Drawing.Size(686, 326);
            this.splitContainer2.SplitterDistance = 325;
            this.splitContainer2.TabIndex = 14;
            // 
            // lvEnvironments
            // 
            this.lvEnvironments.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader1,
            this.columnHeader2,
            this.columnHeader3});
            this.lvEnvironments.Dock = System.Windows.Forms.DockStyle.Fill;
            this.lvEnvironments.FullRowSelect = true;
            this.lvEnvironments.HideSelection = false;
            this.lvEnvironments.Location = new System.Drawing.Point(0, 49);
            this.lvEnvironments.MultiSelect = false;
            this.lvEnvironments.Name = "lvEnvironments";
            this.lvEnvironments.Size = new System.Drawing.Size(230, 529);
            this.lvEnvironments.TabIndex = 4;
            this.lvEnvironments.UseCompatibleStateImageBehavior = false;
            this.lvEnvironments.View = System.Windows.Forms.View.Details;
            this.lvEnvironments.SelectedIndexChanged += new System.EventHandler(this.lvEnvironments_SelectedIndexChanged);
            this.lvEnvironments.DoubleClick += new System.EventHandler(this.lvEnvironments_DoubleClick);
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "Name";
            this.columnHeader1.Width = 85;
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "Server";
            this.columnHeader2.Width = 78;
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "Database";
            this.columnHeader3.Width = 80;
            // 
            // tsEnvironments
            // 
            this.tsEnvironments.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.btnAddEnvironment,
            this.btnDeleteEnvironment,
            this.btnEditEnvironment});
            this.tsEnvironments.Location = new System.Drawing.Point(0, 24);
            this.tsEnvironments.Name = "tsEnvironments";
            this.tsEnvironments.Size = new System.Drawing.Size(230, 25);
            this.tsEnvironments.TabIndex = 2;
            this.tsEnvironments.Text = "toolStrip2";
            // 
            // btnAddEnvironment
            // 
            this.btnAddEnvironment.Image = ((System.Drawing.Image)(resources.GetObject("btnAddEnvironment.Image")));
            this.btnAddEnvironment.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnAddEnvironment.Name = "btnAddEnvironment";
            this.btnAddEnvironment.Size = new System.Drawing.Size(53, 22);
            this.btnAddEnvironment.Text = "Add...";
            this.btnAddEnvironment.Click += new System.EventHandler(this.btnAddEnvironment_Click);
            // 
            // btnDeleteEnvironment
            // 
            this.btnDeleteEnvironment.Image = ((System.Drawing.Image)(resources.GetObject("btnDeleteEnvironment.Image")));
            this.btnDeleteEnvironment.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnDeleteEnvironment.Name = "btnDeleteEnvironment";
            this.btnDeleteEnvironment.Size = new System.Drawing.Size(61, 22);
            this.btnDeleteEnvironment.Text = "Delete...";
            this.btnDeleteEnvironment.Click += new System.EventHandler(this.btnDeleteEnvironment_Click);
            // 
            // btnEditEnvironment
            // 
            this.btnEditEnvironment.Image = ((System.Drawing.Image)(resources.GetObject("btnEditEnvironment.Image")));
            this.btnEditEnvironment.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnEditEnvironment.Name = "btnEditEnvironment";
            this.btnEditEnvironment.Size = new System.Drawing.Size(51, 22);
            this.btnEditEnvironment.Text = "Edit...";
            this.btnEditEnvironment.Click += new System.EventHandler(this.btnEditEnvironment_Click);
            // 
            // label5
            // 
            this.label5.BackColor = System.Drawing.Color.LightSteelBlue;
            this.label5.Dock = System.Windows.Forms.DockStyle.Top;
            this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label5.Location = new System.Drawing.Point(0, 0);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(230, 24);
            this.label5.TabIndex = 3;
            this.label5.Text = "2. Environments";
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // FormMain
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(920, 594);
            this.Controls.Add(this.splitContainer1);
            this.Controls.Add(this.stsBar);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Menu = this.mnuMain;
            this.MinimumSize = new System.Drawing.Size(616, 504);
            this.Name = "FormMain";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "SQL Runner";
            this.Load += new System.EventHandler(this.frmMain_Load);
            this.Closing += new System.ComponentModel.CancelEventHandler(this.FormMain_Closing);
            ((System.ComponentModel.ISupportInitialize)(this.txtComment)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtConnMgrMode)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTotal)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtTotalErrors)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtElapsedTime)).EndInit();
            this.grpSQLPath.ResumeLayout(false);
            this.grpRun.ResumeLayout(false);
            this.progressPane.ResumeLayout(false);
            this.progressPane.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.progressPict)).EndInit();
            this.grpScriptList.ResumeLayout(false);
            this.grpEvent.ResumeLayout(false);
            this.grpEvent.PerformLayout();
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            this.splitContainer1.Panel2.PerformLayout();
            this.splitContainer1.ResumeLayout(false);
            this.splitContainer3.Panel1.ResumeLayout(false);
            this.splitContainer3.Panel1.PerformLayout();
            this.splitContainer3.Panel2.ResumeLayout(false);
            this.splitContainer3.ResumeLayout(false);
            this.tsScripts.ResumeLayout(false);
            this.tsScripts.PerformLayout();
            this.splitContainer2.Panel1.ResumeLayout(false);
            this.splitContainer2.Panel2.ResumeLayout(false);
            this.splitContainer2.ResumeLayout(false);
            this.tsEnvironments.ResumeLayout(false);
            this.tsEnvironments.PerformLayout();
            this.ResumeLayout(false);

        }
        #endregion
    }
}
